app = @bhv
app.directive('videoAnalysis', ->
  restrict: 'E'
  replace: true
  scope: {}
  templateUrl: 'views/video/video-analysis.html'
  link: ($scope,  element, attrs)->
)


app.directive('videoContrast', ->
  restrict: 'E'
  replace: true
  scope: {}
  templateUrl: 'views/video/video-contrast.html'
  link: ($scope,  element, attrs)->

    $scope.title = "《爸爸去哪儿》视频播放数据"

    $scope.videoToday = [20, 30 ,15, 45, 35, 75, 55, 45, 25, 30]

    $scope.videoYesterday = [20, 30 ,15, 45, 35, 75, 55, 45, 25, 30]

    $scope.videoNow = 1232213.5
    $scope.videoNowPrecent = 80
)

app.directive('videoUser', ->
  restrict: 'E'
  replace: true
  scope: {}
  templateUrl: 'views/video/video-user.html'
  link: ($scope,  element, attrs)->
    $scope.userGroup = male: 14, man: 6
)

app.directive('videoBackground', ->
  restrict: 'E'
  replace: true
  scope: {}
  templateUrl: 'views/video/video-video.html'
  link: ($scope,  element, attrs)->
)